package com.lmxdawn.api.dnf.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.StringSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户提现申请
 */

@TableName("t_extra_apply")
@Data
public class ExtraApply {

    @JsonSerialize(using = ToStringSerializer.class)
    @JSONField(serializeUsing = StringSerializer.class)
    private Long id ;

    private String userId;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String realName;

    private String account;

    private Integer res;

    // 1审批通过 0 未审批 2 审批拒绝   ，比如提现失败的时候可以拒绝
    private Integer status;

    private BigDecimal amount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String updateBy;

    private String remark;
    private String fee;
    @TableField(exist = false)
    private String accountType;
    @TableField(exist = false)
    private String accountId;

}
